package com.ruoyi.project.business.tmpuserpost.service;

import com.ruoyi.project.business.domain.model.daily.Post;
import com.ruoyi.project.business.tmpuserpost.entity.TmpUserpost;
import com.ruoyi.project.business.tmpuserpost.request.AddTmpUserpostRequest;
import com.ruoyi.project.business.tmpuserpost.request.ListTmpUserpostRequest;
import com.ruoyi.project.business.tmpuserpost.response.TmpUserpostResponse;

import java.util.List;
import java.util.Map;

/**
 * 临工岗位关系Service接口
 * 
 * @author ${author}
 * @date 2024-04-03
 */
public interface ITmpUserpostService {
    /**
     * 查询临工岗位关系
     *
     * @param id 临工岗位关系ID
     * @return 临工岗位关系
     */
    public TmpUserpost selectTmpUserpostById(Long id);

    /**
     */
    public List<TmpUserpostResponse> selectTmpUserpostList(ListTmpUserpostRequest request, Long tenantId);


    public int insertTmpUserpost(AddTmpUserpostRequest request, Long operatorId, Long tenantId);

    /**
     * 修改临工岗位关系
     * 
     * @return 结果
     */
    public int updateTmpUserpost(TmpUserpost entity, Long operatorId, Long tenantId);

    /**
     * 批量删除临工岗位关系
     * 
     * @return 结果
     */
    public int deleteTmpUserpostByIds(Long[] ids, Long operatorId, Long tenantId);

    /**
     * 删除临工岗位关系信息
     * 
     * @return 结果
     */
    public int deleteTmpUserpostById(Long id, Long operatorId, Long tenantId);

    Map<Long, List<Post>> selectTmpUserpostByUserIds(List<Long> userIds, Long tenantId);
}
